= will_paginate @objs
p
  = link_to 'create blog', new_blog_path
ul.users
  - @objs.each.with_index(1) do |obj, i |
    = render partial: 'blog', locals: {obj: obj, i: i}

= will_paginate @objs

javascript:
  var is_loading = false;
  function to_ajax(obj, url) {
      if(!is_loading){
          is_loading = true;
          $.ajax({
              type: 'post',
              url: url,
              dataType: 'json',
              success: function (result, status, o) {
                  is_loading = false;
                  if (result.flag) {
                    $('#followed_for_' + result.id).text('like(' + result.followed_num + ')')
                    $('#unfollowed_for_' + result.id).text('dislike(' + result.unfollowed_num + ')')
                  }else{
                      alert('操作出错，请联系客服人员！')
                  }
              }
          });
      }

  }